/* eslint-disable react/jsx-props-no-spreading */
import { Upload } from 'choerodon-ui/pro';
import { UploadProps } from 'choerodon-ui/pro/lib/upload/Upload';
import React from 'react';




const ProUploadBasic: React.FC = (): React.ReactElement => {
  const props: UploadProps = {
    headers: {
      'Access-Control-Allow-Origin': '*',
    },
    action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76',
    multiple: true,
    accept: ['image/*'],
    uploadImmediately: false,
    extra: <p>请上传图片文件(jpg, jpeg, png...)</p>,
    onUploadSuccess: response => console.log(response),
  };
return (
  <div>
    <Upload {...props} />
  </div>
);
};

export default ProUploadBasic;